Selectively updating a bios image

ABSTRACT

A BIOS image can be selectively updated. An image loader of the BIOS can be configured to detect whether a BIOS image to be loaded includes a selective update capability field, and if so, employ a value defined in the selective update capability field to determine whether an updated BIOS image exists. When an updated BIOS image exists, the image loader can load the updated BIOS image rather than the BIOS image. In this way, an individual BIOS image can be selectively updated without needing to update the entire BIOS.

CROSS-REFERENCE TO RELATED APPLICATIONS

N/A

BACKGROUND

BIOS firmware (BIOS) is the first software that is executed on the central processing unit (CPU) when a computing system is powered on. The primary task of the BIOS is to initialize the hardware and load the operating system (OS). The BIOS is in the form of a collection of BIOS images that typically comply with the Portable Executable/Common Object File Format (PE/COFF) specification.

FIG. 1 illustrates a generalized architecture of a computing system 100 that employs BIOS. As shown, computing system 100 includes Serial-Peripheral Interface (SPI) flash 110 and system memory 120. SPI flash 110 can represent any non-volatile RAM on or accessible to the motherboard in which BIOS 111 is stored. When computing system 100 is powered on, the CPU will be caused to access SPI flash 110 to retrieve and load BIOS 111 into system memory 120. For simplicity, system memory 120 can be viewed as any address space accessible to the CPU and need not necessarily be computing system 100's RAM.

FIG. 1 represents that BIOS 111 is made up of a collection of BIOS images 111-1 through 111-n. These BIOS images implement the functionality for initializing computing system 100's hardware and ultimately loading the operating system. Of primary relevance to the present invention, one or more of these BIOS images will implement functionality for loading other BIOS images. For example, BIOS image 111-1 may represent the portion of BIOS 111 that implements the Unified Extensible Firmware Interface (UEFI) LoadImage( ) boot service that a UEFI boot manager can call to load other BIOS images into system memory 120. If BIOS 111 is configured to perform Secure Boot, when the LoadImage( ) boot service is called, the BIOS image to be loaded will be verified by determining whether the BIOS image has been signed with a private key that has a corresponding public key stored in an authorized database on computing system 100. If the BIOS image is properly signed, the call to the LoadImage( ) boot service will result in the BIOS image being loaded into system memory 120 so that it may be executed. Typically, a UEFI boot manager will load the BIOS images in a defined sequence and/or at a specified phase of the boot process.

Although these BIOS images are separate, it is not possible to update an individual BIOS image on SPI flash 110. To the contrary, if there is an update to any of BIOS images 111-1 through 111-n, the only way to install the update is to update the entire BIOS 111. In other words, it is not possible to add an updated BIOS image to SPI flash 110 without overwriting the entire existing BIOS 111 with a new BIOS 111 that includes the updated BIOS image.

This inability to update a single BIOS image creates a number of difficulties. For example, updating the entire BIOS can be time consuming. Therefore, a user may be reluctant to install a BIOS update. This is particularly true given that BIOS updates oftentimes only provide an update to a single BIOS image that the user may view as unimportant (e.g., an update pertaining to a peripheral interface or remote management functionality). Yet, the failure to update the BIOS may create incompatibilities, vulnerabilities or other negative side effects.

BRIEF SUMMARY

The present invention extends to methods, systems, and computer program products for selectively updating a BIOS image. An image loader of the BIOS can be configured to detect whether a BIOS image to be loaded includes a selective update capability field, and if so, employ a value defined in the selective update capability field to determine whether an updated BIOS image exists. When an updated BIOS image exists, the image loader can load the updated BIOS image rather than the BIOS image. In this way, an individual BIOS image can be selectively updated without needing to update the entire BIOS.

In some embodiments, the present invention is implemented as a method, performed during a boot process on a computing system, for selectively updating a BIOS image. In response to a request to load a BIOS image from existing BIOS, an identifier can be obtained from the BIOS image. The identifier can then be employed to determine whether an updated BIOS image is available for the BIOS image. Upon determining that an updated BIOS image is available for the BIOS image, the updated BIOS image is loaded rather than the BIOS image.

In some embodiments, the present invention is implemented as computer storage media storing computer executable instructions which when executed implement a method for selectively updating a BIOS image during a boot process on a computing system. This method may include: in response to a request to load a BIOS image from existing BIOS, determining that the BIOS image includes a selective update capability field; employing an identifier defined in the selective update capability field to determine whether an updated BIOS image is available for the BIOS image; and upon determining that an updated BIOS image is available for the BIOS image, loading the updated BIOS image rather than the BIOS image.

In some embodiments, the present invention is implemented as a computing system that includes one or more processors and computer storage media that stores existing BIOS. The existing BIOS implements an image loader and includes a plurality of BIOS images. The image loader is configured to implement a method during a boot process for selectively updating BIOS images included in the existing BIOS. In response to a request to load a first BIOS image included in the existing BIOS, the image loader determines that the first BIOS image includes a selective update capability field. The image loader then obtains a first identifier defined in the selective update capability field of the first BIOS image and determines that the first identifier is mapped to a first storage location. The image loader than loads an updated first BIOS image that is stored at the first storage location rather than loading the first BIOS image from the existing BIOS.

This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

FIG. 1 illustrates an example architecture of a computing system that includes BIOS;

FIGS. 2A and 2B each illustrate an example architecture of a computing system that is configured in accordance with embodiments of the present invention;

FIG. 3 provides an example of how a BIOS image can be configured to include a selective update capability field that an image loader can employ at runtime to load an updated BIOS image in place of the BIOS image;

FIGS. 4A-4C provide an example of how an image loader can detect whether an updated BIOS image is available when it attempts to load a BIOS image;

FIG. 5 provides an example of how an updated BIOS image can be deployed on a computing system to enable the updated BIOS image to be loaded in place of an existing BIOS image; and

FIGS. 6A-6C provide an example of how an image loader can load an updated BIOS image when it detects that the updated BIOS image is available for a BIOS image that it is attempting to load.

DETAILED DESCRIPTION

In the specification and the claims, the term “computing system” should be construed as encompassing desktops, laptops, tablets, smart phones, other mobile devices or any other type of end user computing device that includes BIOS. The term “BIOS” should be construed as firmware that is executed on a computing system to initialize the computing system and load the operating system.

FIGS. 2A and 2B provide examples of an architecture of computing system 100 when it is configured in accordance with embodiments of the present invention. In each figure, computing system 100 includes SPI flash 110 and system memory 120 as described in the background. Additionally, in each figure, computing system 100 is shown as including an update partition 110 b in which GUID-to-location mappings 200 are defined. FIG. 2A represents embodiments where SPI flash 110 includes update partition 110 b as well as a BIOS partition 110 a in which BIOS 211. In contrast, FIG. 2B represents embodiments where computing system 100 includes an NVMe SSD 130 on which update partition 110 b is defined (e.g., in the form of an NVMe namespace). Both of these depicted embodiments should be viewed as examples only. Of importance is the fact that BIOS 211 is stored in some manner on computing system 100. The role of GUID-to-location mappings 200 will be described below, but it should be construed as any data structure suitable for this role which may be stored in any suitable storage media that is accessible on/to computing system 100 during the boot process.

In comparison to FIG. 1 which depicts BIOS 111, computing system 100 as depicted in FIGS. 2A and 2B includes BIOS 211. This distinction is intended to represent that at least some of BIOS images 211-1 through 211-n contained within BIOS 211 can be configured in accordance with embodiments of the present invention to enable updated BIOS images to be loaded at runtime without updating BIOS 211. FIG. 3 is intended to illustrate how BIOS images can be configured for such embodiments.

In FIG. 3, BIOS image 211-1 is assumed to be the portion of BIOS 211 that includes the functionality for loading other BIOS images. In particular, BIOS image 211-1 is assumed to implement an image loader 300 along with possibly many other boot services. In UEFI-based implementations, image loader 300 can represent the portion of BIOS 211 that implements the UEFI LoadImage( ) boot service. BIOS image 211-1 could also implement a boot manager that is configured to invoke image loader 300 to load at least some of the other BIOS images in BIOS 211. FIG. 3 also shows that BIOS images, 211-2, 211-4 and 211-n each include a selective update capability field 301 that defines a value or identifier that is unique to the BIOS image (e.g., a globally unique identifier (GUID)). FIG. 3 further shows that BIOS image 211-3 does not include a selective update capability field 301 which is intended to represent that not all BIOS images in BIOS 211 need to include selective update capability field 301. As described in greater detail below, the presence of a selective update capability field 301 within a BIOS image can represent to image loader 300 that the BIOS image is capable of being selectively updated at runtime.

In some embodiments, to create BIOS images that include a selective update capability field 301, UEFI build tools can be employed to integrate selective update capability field 301 into the PE/COFF format in which the BIOS images are defined. For example, in some embodiments, selective update capability field 301 could be in the form of a custom fixup or relocation entry as those terms are defined in the PE/COFF specification.

FIGS. 4A-4C provide an example of how image loader 300 can handle a request to load a BIOS image. In these figures, it is assumed that computing system 100 has commenced executing BIOS 211 to the point that image loader 300 has been loaded in system memory 120 and is available for loading BIOS images. It is also assumed that a boot manager 400 has been loaded. In step 1 shown in FIG. 4A, boot manager 400 initiates the loading of a BIOS image. For example, boot manager 400 could call LoadImage( ) and identify BIOS image 211-2 as the BIOS image to load. In step 2, image loader 300 can respond to the request to load BIOS image 211-2 by determining whether BIOS image 211-2 includes a selective update capability field 301 and, if so, image loader 300 can read the value of this field. In this example, BIOS 211-2 includes a selective update capability field 301 and therefore, image loader 300 will read “GUID1” as the value defined in BIOS 211-2's selective update capability field 301. It is noted that, if image loader 300 determines that a BIOS image does not include a selective update capability field 301, image loader 300 can proceed to load the BIOS image from BIOS 211 in a typical fashion.

Turning to FIG. 4B, in step 3, image loader 300 can employ the GUID it read from BIOS image 211-2 (GUID1) to determine whether an update for BIOS image 211-2 is available. For example, image loader 300 could access GUID-to-location mappings 200 to determine whether GUID1 is mapped to a particular storage location. In this example, it is assumed that an update has not yet been made available for BIOS 211-2, and therefore, GUID1 is mapped to null (or some other value that does not define a valid storage location). Accordingly, image loader 300 will determine that an update is not available for BIOS image 211-2.

Turning to FIG. 4C, because image loader 300 has determined that an update is not available for BIOS image 211-2, in step 4, image loader 300 can proceed to load BIOS image 211-2 from BIOS 211 into system memory 120. In this context, loading a BIOS image from BIOS 211 is intended to represent that a BIOS image that is part of the existing BIOS on a computing system (e.g., the BIOS that is programmed into the SPI flash) is loaded.

FIG. 5 illustrates how an update to BIOS image 211-2 may be made available on computing system 100 in accordance with embodiments of the present invention. The steps depicted in FIG. 5 are assumed to be performed after those in FIGS. 4A-4C, but similar steps could be performed whenever an update to a BIOS image in BIOS 211 is available. As an example only, a runtime tool (e.g., an update service) executing on computing system 100 could determine that updated BIOS image 211-2 is available (e.g., by querying an update server for available BIOS updates) and retrieve it for deployment. Then, in step 1, the runtime tool could store updated BIOS image 211-2 at a particular location within update partition 110 b (or some other storage area that will be accessible to image loader 300 during the boot process). In this example, it is assumed that updated BIOS image 211-2 is stored at location 1. With updated BIOS image 211-2 stored at location 1, in step 2, GUID-to-location mappings 200 could be updated so that GUID1 is mapped to location 1 rather than to null.

Although not shown, updated BIOS image 211-2, like the version of BIOS image 211-2 in BIOS 211 that it is intended to update, could include a selective update capability field 301 that stores GUID1. This value of selective update capability field 301 can be employed to locate the appropriate mapping to update. In particular, when storing updated BIOS image 211-2 at location 1, the GUID defined in updated BIOS image 211-2 could be read so that it will be known that GUID1, and not some other GUID within GUID-to-location mappings 200, should be mapped to location 1.

FIGS. 6A-6C provide another example of how image loader 300 can handle a request to load a BIOS image. In this example, it is assumed that the request to load the BIOS image is received after the steps of FIG. 5 have been performed. FIG. 6A illustrates steps 1 and 2 which are the same as steps 1 and 2 of FIG. 4A. In particular, it is again assumed that boot manager 400 has requested that BIOS image 211-2 be loaded which has caused image loader 300 to read GUID1 from selective update capability field 301 contained in BIOS image loader 211-2 which is part of the existing BIOS 211.

FIG. 6B illustrates a step 3 which is similar to step 3 of FIG. 4B. However, in this case, image loader 300's query will retrieve location 1 to which GUID1 is now mapped in GUID-to-location mappings 200. Turning to FIG. 6C, because GUID-to-location mappings 200 maps GUID1 to a particular (valid) location, image loader 300 will determine that an update exists for BIOS image 211-2. Accordingly, in step 4, image loader 300 can employ the mapped location retrieved from GUID-to-location mappings 200 to access and load updated BIOS image 211-2 into system memory 120. Notably, the now old version of BIOS image 211-2 that still exists in BIOS 211 will not be loaded.

As can be seen, the above-described process allows an individual BIOS image to be updated without modifying the existing BIOS on a computing system. For example, with reference to FIG. 6C, updated BIOS image 211-2 is loaded during the boot process while BIOS 211, including BIOS image 211-2, remains unchanged on SPI flash 110. This process can be performed each time computing system 100 is booted to ensure that updated BIOS image 211-2 will be loaded.

This process can also performed in compliance with Secure Boot (or a similar security standard). In particular, any updated BIOS image that is loaded in accordance with the techniques of the present invention can be signed in accordance with the Secure Boot standard. Then, when image loader 300 identifies the available updated BIOS image, it can verify that the updated BIOS image is properly signed before loading it.

In some embodiments, image loader 300 may be configured to access a configuration policy prior to implementing the above-described techniques. For example, a configuration policy may be maintained on computing system and can define whether the selective update of BIOS images should be allowed. In such cases, as part of being executed, image loader 300 can access the configuration policy to determine whether it should perform the selective update process during the boot process. In some embodiments, the configuration policy may identify individual BIOS images, categories of BIOS images or some other grouping of BIOS images for which the selective update process should be performed.

In summary, embodiments of the present invention provide techniques for enabling individual BIOS images to be updated without updating the entire existing BIOS on a computing system while still ensuring compliance with Secure Boot. These techniques allow BIOS updates to be performed with virtually no downtime.

Embodiments of the present invention may comprise or utilize special purpose or general-purpose computers including computer hardware, such as, for example, one or more processors and system memory. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system.

Computer-readable media are categorized into two disjoint categories: computer storage media and transmission media. Computer storage media (devices) include RAM, ROM, EEPROM, CD-ROM, solid state drives (“SSDs”) (e.g., based on RAM), Flash memory, phase-change memory (“PCM”), other types of memory, other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other similarly storage medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Transmission media include signals and carrier waves. Because computer storage media and transmission media are disjoint categories, computer storage media does not include signals or carrier waves.

Computer-executable instructions comprise, for example, instructions and data which, when executed by a processor, cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language or P-Code, or even source code.

Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, tablets, pagers, routers, switches, and the like.

The invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices. An example of a distributed system environment is a cloud of networked servers or server resources. Accordingly, the present invention can be hosted in a cloud environment.

The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. 

What is claimed:
 1. A method, performed during a boot process on a computing system, for selectively updating a BIOS image, the method comprising: in response to a request to load a BIOS image from existing BIOS, obtaining an identifier from the BIOS image; employing the identifier to determine whether an updated BIOS image is available for the BIOS image; and upon determining that an updated BIOS image is available for the BIOS image, loading the updated BIOS image rather than the BIOS image.
 2. The method of claim 1, wherein obtaining the identifier from the BIOS image comprises detecting that the BIOS image includes a selective update capability field and reading the identifier from the selective update capability field.
 3. The method of claim 1, wherein employing the identifier to determine whether an updated BIOS image is available for the BIOS image comprises determining whether the identifier is mapped to a storage location.
 4. The method of claim 3, wherein loading the updated BIOS image comprises loading the updated BIOS image from the storage location to which the identifier is mapped.
 5. The method of claim 1, further comprising: prior to loading the updated BIOS image, verifying a signature of the updated BIOS image.
 6. The method of claim 1, further comprising: in response to a request to load a second BIOS image from the existing BIOS, obtaining a second identifier from the second BIOS image; employing the second identifier to determine whether an updated BIOS image is available for the second BIOS image; and upon determining that an updated BIOS image is not available for the second BIOS image, loading the second BIOS image from the existing BIOS.
 7. The method of claim 6, wherein determining that an updated BIOS image is not available for the second BIOS image comprises determining that the second identifier is not mapped to a storage location.
 8. The method of claim 7, further comprising: storing an updated second BIOS image at a particular storage location; and mapping the second identifier to the particular storage location.
 9. The method of claim 8, further comprising: in response to another request to load the second BIOS image from the existing BIOS, obtaining the second identifier from the second BIOS image; determining that the second identifier is mapped to the particular storage location; and loading the updated second BIOS image from the particular storage location.
 10. The method of claim 1, further comprising: in response to a request to load a second BIOS image from the existing BIOS, determining that the second BIOS does not include a selective update capability field; and in response to determining that the second BIOS does not include a selective update capability field, loading the second BIOS image from the existing BIOS.
 11. One or more computer storage media storing computer executable instructions which when executed implement a method for selectively updating a BIOS image during a boot process on a computing system, the method comprising: in response to a request to load a BIOS image from existing BIOS, determining that the BIOS image includes a selective update capability field; employing an identifier defined in the selective update capability field to determine whether an updated BIOS image is available for the BIOS image; and upon determining that an updated BIOS image is available for the BIOS image, loading the updated BIOS image rather than the BIOS image.
 12. The computer storage media of claim 11, wherein employing the identifier defined in the selective update capability field to determine whether an updated BIOS image is available for the BIOS image comprises determining that the identifier is mapped to a storage location.
 13. The computer storage media of claim 12, wherein loading the updated BIOS image comprises loading the updated BIOS image from the storage location to which the identifier is mapped.
 14. The computer storage media of claim 11, wherein the method further comprises: in response to a request to load a second BIOS image from the existing BIOS, determining that the second BIOS image includes a selective update capability field; employing a second identifier defined in the selective update capability field included in the second BIOS image to determine whether an updated second BIOS image is available for the second BIOS image; and upon determining that an updated second BIOS image is not available for the BIOS image, loading the second BIOS image from the existing BIOS.
 15. The computer storage media of claim 14, wherein the method further comprises: storing an updated second BIOS image at a particular storage location; mapping the second identifier to the particular storage location; in response to another request to load the second BIOS image from the existing BIOS, determining that the second identifier is mapped to the particular storage location; and loading the updated second BIOS image from the particular storage location rather than loading the second BIOS image from the existing BIOS.
 16. A computing system comprising: one or more processors; and computer storage media storing existing BIOS, wherein the existing BIOS implements an image loader and includes a plurality of BIOS images; wherein the image loader is configured to implement a method during a boot process for selectively updating BIOS images included in the existing BIOS, the method comprising: in response to a request to load a first BIOS image included in the existing BIOS, determining that the first BIOS image includes a selective update capability field; obtaining a first identifier defined in the selective update capability field of the first BIOS image; determining that the first identifier is mapped to a first storage location; and loading an updated first BIOS image that is stored at the first storage location rather than loading the first BIOS image from the existing BIOS.
 17. The computing system of claim 16, wherein the method further comprises: in response to a request to load a second BIOS image included in the existing BIOS, determining that the second BIOS image includes a selective update capability field; obtaining a second identifier defined in the selective update capability field of the second BIOS image; determining that the second identifier is not mapped to a storage location; and loading the second BIOS image from the existing BIOS.
 18. The computing system of claim 17, wherein the method further comprises: in response to a subsequent request to load the second BIOS image included in the existing BIOS, determining that the second identifier is mapped to a second storage location; and loading an updated second BIOS image from the second storage location rather than loading the second BIOS image from the existing BIOS.
 19. The computing system of claim 16, wherein the computer storage media stores GUID-to-location mappings, and wherein determining that the first identifier is mapped to the first storage location comprises accessing the GUID-to-location mappings.
 20. The computing system of claim 16, wherein the method further comprises: loading the updated first BIOS image after verifying a signature of the updated first BIOS image. 